/*
 * @Author: WangZhongDe
 * @Date: 2021-08-29 19:24:35
 * @LastEditors: WangZhongDe
 * @LastEditTime: 2021-08-29 20:45:45
 * @FilePath: \rust\learn7\src\main.rs
 */
use learn7::Summary;
use learn7::Tweet;
use learn7::NewsArticle;
fn main() {
   let tweet = Tweet{
       username:String::from("horse_ebooks"),
       content:String::from("of course,as you probably already know,people"),
       reply:false,
       retweet:false,
   };
   let news= NewsArticle{
       headline:String::from("header"),
       location:String::from("location"),
       author:String::from("wzd"),
       content:String::from("this is content"),
   };
   println!("1 new tweet:{}",tweet.summarize());
   println!("1 news Aticle: {}",news.summarize());
   println!("1 news Aticle: {}",news.default());
}
